package com.pdsu.alumni.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Acerola
 * @since 2021-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_message_type")
@ApiModel(value = "MessageType对象", description = "")
public class MessageType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "当前记录的父节点")
    @TableField("type_parentId")
    private Integer typeParentId;


    @ApiModelProperty(value = "当前记录的路径")
    private String typePath;

    @ApiModelProperty(value = "分类名称")
    private String typeName;


    @TableField(exist = false)
//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<MessageType> children;
}
